import request from '@/utils/request'


export function getList(page, data) {
  return request({
    url: `/?m=info&a=list&page=${page}`,
    method: 'POST',
    data
  })
}

export function getDetail(id) {
  return request({
    url: `/?m=info&a=detail&id=${id}`,
    method: 'GET',
  })
}

export function loseInfo(id) {
  return request({
    url: `/?m=info&a=lose&id=${id}`,
    method: 'GET',
  })
}

export function getStatistics() {
  return request({
    url: `/?m=info&a=statistics`,
    method: 'GET',
  })
}

export function getInfoStatistics() {
  return request({
    url: `/?m=info&a=info_statistics`,
    method: 'GET',
  })
}

export function setRemark(data) {
  return request({
    url: `/?m=info&a=remark`,
    method: 'POST',
    data
  })
}
export function setState(data) {
  return request({
    url: `/?m=info&a=state`,
    method: 'POST',
    data
  })
}

export function getInfoConfig() {
  return request({
    url: `/?m=info&a=config`,
    method: 'GET'
  })
}


export function add(data) {
  return request({
    url: `/?m=info&a=add`,
    method: 'POST',
    data
  })
}


